package cn.tedu.submarine;

import java.io.Serializable;

public class SaveInfo implements Serializable {
    public static final long serialVersionUID=42L;

    private Battleship ship = new Battleship();
    private Property[] submarines = {};
    private Mine[] mines = {};
    private Bomb[] bombs = {};
    private int score=0;

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public SaveInfo(int score) {
        this.score = score;
    }

    private int subEnterIndex=0;
    private int minEnterIndex=0;

    public SaveInfo(Battleship ship, Property[] submarines, Mine[] mines, Bomb[] bombs, int subEnterIndex, int minEnterIndex) {
        this.ship = ship;
        this.submarines = submarines;
        this.mines = mines;
        this.bombs = bombs;
        this.subEnterIndex = subEnterIndex;
        this.minEnterIndex = minEnterIndex;
    }

    public Battleship getShip() {
        return ship;
    }

    public void setShip(Battleship ship) {
        this.ship = ship;
    }

    public Property[] getSubmarines() {
        return submarines;
    }

    public void setSubmarines(Property[] submarines) {
        this.submarines = submarines;
    }

    public Mine[] getMines() {
        return mines;
    }

    public void setMines(Mine[] mines) {
        this.mines = mines;
    }

    public Bomb[] getBombs() {
        return bombs;
    }

    public void setBombs(Bomb[] bombs) {
        this.bombs = bombs;
    }

    public int getSubEnterIndex() {
        return subEnterIndex;
    }

    public void setSubEnterIndex(int subEnterIndex) {
        this.subEnterIndex = subEnterIndex;
    }

    public int getMinEnterIndex() {
        return minEnterIndex;
    }

    public void setMinEnterIndex(int minEnterIndex) {
        this.minEnterIndex = minEnterIndex;
    }

    public int setScore() {
        return 0;
    }
}

